//
// Created by yewa on 2021/11/16.
//

#ifndef LEARNOPENGL_GLUTIL_H
#define LEARNOPENGL_GLUTIL_H

#include <GLES3/gl3.h>

class GLUtil {
public:
    static GLuint CreateProgram(const char *pVertexShaderSource, const char *pFragShaderSource,
                                GLuint &vertexShaderHandle,
                                GLuint &fragShaderHandle);

    static GLuint LoadShader(GLenum shaderType, const char *pSource);

    static void CheckGLError(const char *pGLOperation);
};


#endif //LEARNOPENGL_GLUTIL_H
